package com.ruoyi.school.homework.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 作业对象 school_homework
 * 
 * @author qiang
 * @date 2022-07-10
 */
public class Homework extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据库编号 */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 课程id */
    @Excel(name = "课程id")
    private Long courseId;

    /** 时长 */
    @Excel(name = "时长")
    private Long timeLenght;

    /** 作业题目数量 */
    @Excel(name = "作业题目数量")
    private Long problemQty;

    /** 作业总分 */
    @Excel(name = "作业总分")
    private Long score;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtCreate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtModified;

    /** 发布人id */
    @Excel(name = "发布人id")
    private Long userId;

    /** 作业题目信息 */
    private List<HomeworkProblem> homeworkProblemList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setTimeLenght(Long timeLenght) 
    {
        this.timeLenght = timeLenght;
    }

    public Long getTimeLenght() 
    {
        return timeLenght;
    }
    public void setProblemQty(Long problemQty) 
    {
        this.problemQty = problemQty;
    }

    public Long getProblemQty() 
    {
        return problemQty;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setGmtCreate(Date gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtCreate() 
    {
        return gmtCreate;
    }
    public void setGmtModified(Date gmtModified) 
    {
        this.gmtModified = gmtModified;
    }

    public Date getGmtModified() 
    {
        return gmtModified;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public List<HomeworkProblem> getHomeworkProblemList()
    {
        return homeworkProblemList;
    }

    public void setHomeworkProblemList(List<HomeworkProblem> homeworkProblemList)
    {
        this.homeworkProblemList = homeworkProblemList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("courseId", getCourseId())
            .append("timeLenght", getTimeLenght())
            .append("problemQty", getProblemQty())
            .append("score", getScore())
            .append("gmtCreate", getGmtCreate())
            .append("gmtModified", getGmtModified())
            .append("remark", getRemark())
            .append("userId", getUserId())
            .append("homeworkProblemList", getHomeworkProblemList())
            .toString();
    }
}
